<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>display:inline、block、inline-block的区别</title>
</head>
<style>
/*div{*/
/*    width: 200px;*/
/*    height: 200px;*/
/*    background-color: #ff2ca0;*/
/*    display: inline-block;*/
/*}*/
/*.test{*/
/*    display: block;*/
/*}*/
    .test div{
            width: 200px;
    height: 200px;
    background-color: red;
    display: inline-block;
    }
</style>
<body>
<div>1</div>
<div>2</div>
<div>3</div>
<div class="test">
    <div>4</div>
    <div>5</div>
    <div>6</div>
</div>
</body>
</html>